package com.my.service;

import com.my.entity.Dormitory;

import java.util.List;

public interface DormitoryService {

    public List<Dormitory> availableList();

    public List<Dormitory> list();

    public List<Dormitory> search(String key, String value);

    public void save(Dormitory dormitory);

    public void update(Dormitory dormitory);

    public void delete(Integer id);

    public List<Dormitory> findByBuildingId(Integer buildingId);
}
